package com.example.library.dao;

import com.example.library.bean.model.Banner;
import com.example.library.bean.model.Book;
import com.example.library.bean.model.BookType;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BannerRepository extends JpaRepository<Banner,Long> {

    List<Banner> findAllByType(int type);

}
